Elementor\TemplateLibrary\Manager B

Total Complexity 90
Dependencies 17
Dependents 1
Total lines 779
Lines of code 330
Logical lines of code 197
Comment lines 311
Methods 31
Properties 4

Methods 31

Method Rating Maintainability Complexity Lines of code
handle_direct_actions()
A
49 8 30
export_template()
A
52 8 22
is_allowed_to_read_template()
S
56 7 16
get_template_data()
S
53 5 23
handle_ajax_request()
S
57 5 17
should_check_permissions()
S
62 5 11
save_template()
S
56 4 18
update_template()
S
57 4 16
register_source()
S
59 4 15
get_templates()
S
62 4 10
import_from_json()
S
60 3 13
get_library_data()
S
60 3 13
delete_template()
S
62 3 11
register_ajax_actions()
S
58 2 17
update_templates()
S
65 3 9
import_template()
S
58 2 15
register_default_sources()
S
63 2 11
mark_template_as_favorite()
S
66 2 8
get_source()
S
69 2 7
ensure_args()
S
67 2 7
get_import_images_instance()
S
71 2 6
direct_import_template()
S
71 1 5
get_registered_sources()
S
82 1 3
enable_json_template_upload()
S
82 1 3
unregister_source()
S
82 1 3
set_elementor_adapter()
S
81 1 3
add_actions()
S
75 1 4
set_wordpress_adapter()
S
81 1 3
on_direct_import_template_success()
S
80 1 3
handle_direct_action_error()
S
80 1 3
__construct()
S
74 1 5